#include <iostream>
#include <fstream>
#include <string>

int main()
{
	std::ofstream write_to("Inputfile");
	std::string MS_Id[4] = {"VC", "FMG", "VC_1d", "FMG_1d"};
	std::string Pro_Id[3] = {"II", "III"};
	std::string F_Id[4] = {"f1", "f2", "f3", "f4"};
	std::string G_Id[4] = {"g1", "g2", "g3", "g4"};
	std::string Res_Id[2] = {"Fullweighting", "Injection"};
	std::string Int_Id[2] = {"Linear", "Quadratic"};
	size_t t, d, num;

	for(int f = 0; f != 4; f++) {
		if(f == 0 || f == 1) {
			d = 1;
			num = 4;
		}
		else {
			d = 2;
			num = 2;
		}
		for(int i = 0; i != 2; i++) {
			if(i == 1 && (f == 2 || f == 4))
				break;
			for(int M = 0; M != num; M++) {
				for(int R = 0; R != 2; R++) {
					for(int In = 0; In != 2; In++) {
						for(int N = 7; N != 11; N++) {
							write_to << "%" << std::endl;
							write_to << Pro_Id[i] << '\t' << d << '\t' << N << std::endl;
							write_to << MS_Id[M] << '\t' << Res_Id[R] << '\t' << Int_Id[In] << std::endl;
							write_to << F_Id[f] << '\t' << G_Id[f] << std::endl;
							write_to << 2 << '\t' << 2 << '\t' << 2 << std::endl;
						}
					}
				}
			}
		}	
	}
	write_to << '#';
	write_to.close();
}
